<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=<device-width>, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <ul class="fix">
        <li onclick="go('#div1')">1F</li>
        <li onclick="go('#div2')">2F</li>
        <li onclick="go('#div3')">3F</li>
        <li onclick="go('#div4')">4F</li>
        <li onclick="go('#div5')">5F</li>
    </ul>
    <div class="div" id="div1">这是一楼</div>
    <div class="div" id="div2">这是二楼</div>
    <div class="div" id="div3">这是三楼</div>
    <div class="div" id="div4">这是四楼</div>
    <div class="div" id="div5">这是五楼</div>
</body>
<script>
    function go(s){
        location.hash = s;
    }
</script>
</html>